# Contributor: Maxim Karasev <mxkrsv@disroot.org>
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tree-sitter-latex
pkgver=0.3.0
pkgrel=2
pkgdesc="LaTeX grammar for tree-sitter"
url="https://github.com/latex-lsp/tree-sitter-latex"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="https://github.com/latex-lsp/tree-sitter-latex/archive/v$pkgver/tree-sitter-latex-$pkgver.tar.gz"
options="!check" # no tests

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
85cb2b2f5af4e148a1711efc5b4d62b7ae326271c40e61c56e63eed5e6dfab24eac68a12c1260b521fbf3e12294ffcb6f63c74c67f2a205685575f294f6e3a5b  tree-sitter-latex-0.3.0.tar.gz
"
